package com.cvic.se.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cvic.se.entity.Person;
import com.cvic.se.mapper.PersonMapper;
import com.cvic.se.service.PersonService;
import com.cvic.se.utils.Result;

/**
 * <p>
 * InnoDB free: 4096 kB; (`MECH_ID`) REFER `work1/mechanism`(`MECH_ID`) 服务实现类
 * </p>
 *
 * @author liang,FY
 * @since 2021-07-21
 */
@Service
public class PersonServiceImpl extends ServiceImpl<PersonMapper, Person> implements PersonService {

	@Autowired
	private PersonMapper personMapper;
	
	@Override
	public Result addContactInfo(Person person) {
      int temp = personMapper.addContactInfo(person);
		if(temp==1) {
			return Result.success();
		}
		
		return Result.error();
	}
		
	}

